package cn.psvmc.cxzapi.service.store;

import cn.psvmc.cxzapi.config.mybatisplus.service.impl.AbstractService;
import cn.psvmc.cxzapi.mapper.store.TCouponGoodsMapper;
import cn.psvmc.cxzapi.model.store.TCouponGoods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 优惠券商品表 服务实现类
 * @Author auto
 * @Date 2024-08-23
 */
@Service
public class TCouponGoodsService extends AbstractService<TCouponGoodsMapper, TCouponGoods> {
    @Resource
    private TCouponGoodsMapper tCouponGoodsMapper;

    /**
     * @Description 根据优惠券ID查询商品列表
     * @Date 2024/8/23 15:38
     * @Author YWX
     * @Param [id]
     * @Return java.util.List<java.util.Map>
     **/
    public List<Map> listByCouponId(Integer id) {
        return tCouponGoodsMapper.listByCouponId(id);
    }
}
